<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MainPage</title>
    <link rel="StyleSheet" href="../../css/mypetstore.css" type="text/css" media="screen"/>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="../../js/Carousel/carousel.js"></script>
</head>
<body>
<div th:replace="jsp/common/top">

</div>
<div id="Content">
    <div id="Welcome">
        <div id="WelcomeContent">
            <!--显示登录用户的fistname-->

        </div>
    </div>



    <div id="Main">
        <div id="Sidebar">
            <div id="SidebarContent" >
                <span th:each="category:${session.categoryList}">

                <a
                   th:href="@{/catalog/viewCategory(categoryId=${category.getCatid()})}">
                    <img th:src="@{${category.getIcon()}}" class="productShow_1"
                         th:data-name="${category.getCatid()}"/>
                </a>
                <br/>
                <span th:text="${category.getDescn()}"></span>
                <br/>
                </span>
            </div>
        </div>


        <div class="app">
            <div class="scroll">
                <!-- 图片展示 -->
                <span th:each="category, iterStat : ${session.categoryList}">
                <a th:href="@{/catalog/viewCategory(categoryId=${category.getCatid()})}">
                   <img th:src="@{${category.getImg()}}"
                        th:class="${iterStat.index == 0} ? 'img current' : 'img'" alt="scrollImage">
                </a>
                </span>


                <!-- 左右箭头的展示 -->
                <div class="lf"></div>
                <div class="lr"></div>

                <!-- 小圆点展示 -->
                <div class="dots">
                    <span class="square"></span>
                    <span></span>
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
            </div>
        </div>


        <div id="Separator">&nbsp;</div>
    </div>
</div>
<div th:replace="jsp/common/bottom">

</div>

</body>
</html>